import request from '@/utils/request'

// 查询第三方平台信息列表
export function listThirdPlatform(query) {
  return request({
    url: '/tool/thirdPlatform/list',
    method: 'get',
    params: query
  })
}

// 查询第三方平台信息详细
export function getThirdPlatform(platformId) {
  return request({
    url: '/tool/thirdPlatform/' + platformId,
    method: 'get'
  })
}

// 新增第三方平台信息
export function addThirdPlatform(data) {
  return request({
    url: '/tool/thirdPlatform',
    method: 'post',
    data: data
  })
}

// 修改第三方平台信息
export function updateThirdPlatform(data) {
  return request({
    url: '/tool/thirdPlatform',
    method: 'put',
    data: data
  })
}

// 删除第三方平台信息
export function delThirdPlatform(platformId) {
  return request({
    url: '/tool/thirdPlatform/' + platformId,
    method: 'delete'
  })
}

// 导出第三方平台信息
export function exportThirdPlatform(query) {
  return request({
    url: '/tool/thirdPlatform/export',
    method: 'get',
    params: query
  })
}